debug release: deps
	make -C bin/ $@

deps:
	echo VPATH := ../ `find src/ -type d -exec echo ../'{}' \; | grep -v svn` > bin/.deplist
	echo OBJS := `find src/ -iname *.cpp -exec basename '{}' \\; | sed s/cpp/o/g` >> bin/.deplist
	$(CXX) -MM -MG `find src -type f | grep -v \.svn` | sed s/SDL.*\.h//g >> ./bin/.deplist

clean:
	make -C bin/ clean
.PHONY: bin deps all release debug


